#define _CRT_SECURE_NO_WARNINGS 1

#include"image.h"


void ImgInit(struct img* g)
{
	g->sp = new IMAGE;
	g->wa = new IMAGE;
	g->pl = new IMAGE;
	g->bo = new IMAGE;
	g->de = new IMAGE;
	g->end = new IMAGE;

	loadimage(g->sp, "img/sp.png",32,32,true);
	loadimage(g->wa, "img/wa.png", 32, 32, true);
	loadimage(g->pl, "img/pl.png", 32, 32, true);
	loadimage(g->bo, "img/bo.png", 32, 32, true);
	loadimage(g->de, "img/de.png", 32, 32, true);
	loadimage(g->end, "img/end.png", 32, 32, true);
}
void ImgDestory(struct img* g)
{
	delete g->sp ;
	delete g->wa ;
	delete g->pl ;
	delete g->bo ;
	delete g->de ;
	delete g->end;
}